package com.passer.labyrinth.gui;

import javax.swing.*;
import java.awt.*;

public class PasserLabyrinthFrame extends JFrame {

    public PasserLabyrinthFrame(String title) {
        super(title);
        this.setSize(new Dimension((35 + 1) * 20, (25 + 1) * 20));
        PasserLabyrinthPanel passerLabyrinthPanel = new PasserLabyrinthPanel(25, 35);
        this.getContentPane().add(passerLabyrinthPanel);
        pack();
        setVisible(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//当用户点击窗体右上角x时自动推出程序
    }
}
